﻿using Inovout.Models;
using Inovout.Services;
using Inovout.YunYao.Models;
using Inovout.YunYao.Repositories;
using System.Collections.Generic;

namespace Inovout.YunYao.Services
{
    public class MonitoringElementService<TModel> : RepositoryService<TModel>, IMonitoringElementService<TModel> ,IRepositoryService<TModel> where TModel : DataObject,IMonitoringElement
    {
        protected MonitoringElementRepository<TModel> MonitoringElementRepository
        {
            get
            {
                //return ComponentRegistry.Resolve<MonitoringElementRepository<TModel>>();
                return (MonitoringElementRepository<TModel>)base.Repository;
            }
        }
        public IList<TModel> FindAllBySolutionId(int solutionCode)
        {
            return MonitoringElementRepository.FindAllBySolutionId(solutionCode);
        }
    }
}
